package mapengine.effects
{
	import flash.display.MovieClip;
	
	import isoengine.IsoSetting;
	import isoengine.world.IsoMapSprite;
	
	import mapengine.building.MapObjectBase;
	
	public class EffectObjectBase extends IsoMapSprite implements IEffect
	{
		public function EffectObjectBase(descriptor:Object=null)
		{
			super(descriptor);
			asset = new MovieClip();
			
			sprites = [asset];
		}
		
		override  public function setPosition(_x:int, _y:int, _z:int = 0):void {
			objectData.x = _x;
			objectData.y = _y;
			
			moveTo(objectData.x * IsoSetting.cellSize, objectData.y * IsoSetting.cellSize, 0);
		}
		
		private var _params:*;
		
		private var _assetEffect:IEffectAsset;

		public function get assetEffect():IEffectAsset
		{
			return _assetEffect;
		}

		public function set assetEffect(value:IEffectAsset):void
		{
			_assetEffect = value;
		}


		public function set params(value:*):void
		{
			_params = value;
		}
		
		override public function dispose():void
		{
			super.dispose();
		}
		
		public function start():void
		{
			
		}
		
	}
}